﻿using MotorLibrary.Model;
using MotorLibrary.Repository.DTO;

namespace MotorLibrary.Repository.Converter
{
    public interface IConverter<EntityType, DTOType>
        where EntityType: IEntity
        where DTOType: IDTO
    {
        EntityType DtoToEntity(DTOType dto);
        DTOType EntityToDto(EntityType entity);
    }
}
